<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>机票列表</title>
    <include file="Template/head"/>
<body>
<div class="actNav">
    <div class="doRefresh">
        <if condition="$flightinfo[0]['orgCity'] eq 'NAY'">北京
            <elseif condition="$flightinfo[0]['orgCity'] eq 'PVG'"/>
            上海
            <else/>
            {$flightinfo.0.depname}
        </if>
        -
        <if condition="$flightinfo[0]['dstCity'] eq 'NAY'">北京
            <elseif condition="$flightinfo[0]['dstCity'] eq 'PVG'"/>
            上海
            <else/>
            {$flightinfo.0.arrname}
        </if>
    </div>
    <a href="javascript:" onclick="self.location=document.referrer;" class="back"></a>
    <a href="{:U('Index/index')}" class="home"></a>
</div>
<div class="wapper ucenter" style="overflow: hidden;">
    <div class="row flight-row-p1 flight-list-t">
        <div class="col-xs-3 text-center flight-list-text-l flight-row-s1">
            <form method="post" action="{:U('Flight/flightQueryList')}">
                <input type="hidden" name="dayBefore" value="{$flightinfo.0.day}">
                <input type="hidden" name="departure" value="{$flightinfo.0.orgCity}">
                <input type="hidden" name="destination" value="{$flightinfo.0.dstCity}">
                <input type="submit" value="< 前一天" style="border:none;background: #E5E5E5">
            </form>
        </div>

        <div class="col-xs-6 text-center flight-list-text-l flight-row-s1">
            <input id="d4322" class="Wdate ui-datepicker" type="text" onclick="WdatePicker({el: $dp.$('d12')})"
                   placeholder="{$date}" name="start_time" disabled='disabled'>
        </div>

        <div class="col-xs-3 text-center flight-list-text-l flight-row-s1">
            <form method="post" action="{:U('Flight/flightQueryList')}">
                <input type="hidden" name="dayAfter" value="{$flightinfo.0.day}">
                <input type="hidden" name="departure" value="{$flightinfo.0.orgCity}">
                <input type="hidden" name="destination" value="{$flightinfo.0.dstCity}">
                <input type="submit" value="后一天 >" style="border:none;background: #E5E5E5">
            </form>
        </div>
    </div>

    <br/>
    <foreach name="flightinfo" item="vo">
        <if condition="$vo['days'] egt $now">
            <div class="flight-list">
                <div class="blockItem">
                    <div data-event-trigger>
                        <table style="width: 100%">
                            <tr>
                                <td width="40%" class="text-left flight-list-t-l1"><b>{$vo.depTime|returnTime}</b></td>
                                <td width="20%" class="text-center flight-list-t-l1"><img
                                        src="http://cdn.lydlr.com/public/images/flight/ticket_10.png" width="70%"
                                        style="margin-bottom: 2px;"></td>
                                <td width="40%" class="text-right flight-list-t-r1"><b>{$vo.arriTime|returnTime}</b>
                                </td>
                            </tr>
                            <tr>
                                <td width="40%" class="text-left flight-list-t-l1">
                                    <if condition="$vo['orgCity'] eq 'PVG'">
                                        浦东机场
                                        <elseif condition="$vo['orgCity'] eq 'NAY'"/>
                                        南苑机场
                                        <else/>
                                        {$vo.orgCity|nameToAirport}
                                    </if>
                                    <if condition="($vo['orgJetquay'] eq 'Array') or ($vo['orgJetquay'] eq '--')">
                                        <else/>
                                        {$vo.orgJetquay}
                                    </if>
                                </td>
                                <td width="20%">&nbsp;</td>
                                <td width="40%" class="text-right flight-list-t-r1">
                                    <if condition="$vo['dstCity'] eq 'PVG'">
                                        浦东机场
                                        <elseif condition="$vo['dstCity'] eq 'NAY'"/>
                                        南苑机场
                                        <else/>
                                        {$vo.dstCity|nameToAirport}
                                    </if>

                                    <if condition="($vo['dstJetquay'] eq 'Array') or ($vo['dstJetquay'] eq '--')">
                                        <else/>
                                        {$vo.dstJetquay}
                                    </if>
                                </td>

                            </tr>
                            <tr>
                                <td width="100%" colspan="3" class="flight-list-t-l1">
                                    {$vo.flightNo|substr=0,2|nameToAirLine} {$vo.flightNo} | {$vo.planeType}
                                </td>
                            </tr>
                            <tr>
                                <td width="100%" colspan="3" class="text-right flight-list-t-r1">
                                    <span style="color:#F0AD4E ">查看全部舱位</span>
                                </td>
                            </tr>

                        </table>
                    </div>
                    <p></p>


                    <foreach name="vo.price" item="v">
                        <div class="con">
                            <table style="width: 100%">
                                <tr style="border:0px;">
                                    <td width="37%">
                                        <span class='flight-list-t-l' style="margin-left: 10px;">
                                        <if condition="($v['seatMsg'] eq '高端经济舱') or ($v['seatMsg'] eq '超级经济舱') or ($v['seatMsg'] eq '特价舱位')">
                                            经济舱
                                            <else/>
                                            {$v.seatMsg}
                                        </if><!--{$v.seatCode}{$v.commisionPoint}-->{$v.seatCode}&nbsp;&nbsp;&nbsp;{$v.agio|getDisCount} 折
                                        <if condition="($Think.session.isLogin eq yes) and ($v['needSwitchPNR'] eq 1)">
                                            <span style="color:red">*</span></if>
                                        </span>
                                    </td>
                                    <td class="flight-list-t-l text-right" width="33%">
                                        <if condition="$v['ticketnum'] eq 'A'">
                                            <elseif condition="$v['ticketnum']  eq 'L'"/>
                                            <elseif condition="$v['ticketnum']  eq 'Q'"/>
                                            <elseif condition="$v['ticketnum']  eq 'S'"/>
                                            <elseif condition="$v['ticketnum']  eq 'C'"/>
                                            <elseif condition="$v['ticketnum']  eq 'X'"/>
                                            <elseif condition="$v['ticketnum']  eq 'Z'"/>
                                            <else/>
                                            (余 <span class='flight-list-t-r'>{$v.ticketnum} </span>张)
                                        </if>


                                        <if condition="$Think.session.isLogin eq yes">
                                            <span class='flight-list-t-r'>&yen;{$v['settlePrice'] + $vo['fuelTax'] + $vo['airportTax']}</span>
                                            <else/>
                                    <span class='flight-list-t-r'>
                                        &yen;{$v.parPrice}
                                    </span>
                                        </if>
                                    </td>
                                    <td width="30%" class="text-center">
                                        <if condition="$Think.session.isLogin eq yes">
                                            <form method="post" action="{:U('Flight/showOrderCreateInfo')}">
                                                <input type="hidden" name="date" value="{$date}">
                                                <input type="hidden" name="type" value="0">
                                                <input type="hidden" name="flightNo" value="{$vo.flightNo}">
                                                <input type="hidden" name="orgCity" value="{$vo.orgCity}">
                                                <input type="hidden" name="dstCity" value="{$vo.dstCity}">
                                                <input type="hidden" name="depTime" value="{$vo.depTime}">
                                                <input type="hidden" name="arriTime" value="{$vo.arriTime}">
                                                <input type="hidden" name="settlePrice" value="{$v.settlePrice}">
                                                <input type="hidden" name="planeType" value="{$vo.planeType}">
                                                <input type="hidden" name="policyId" value="{$v.policyId}">
                                                <input type="hidden" name="seatCode" value="{$v.seatCode}">
                                                <input type="hidden" name="fuelTax" value="{$vo.fuelTax}">
                                                <input type="hidden" name="airportTax" value="{$vo.airportTax}">
                                                <input type="hidden" name="parPrice" value="{$v.parPrice}">
                                                <input type="hidden" name="orgJetquay" value="{$vo.orgJetquay}">
                                                <input type="hidden" name="dstJetquay" value="{$vo.dstJetquay}">
                                                <input type="hidden" name="arrDate" value="{$vo.arrDate}">
                                                <input type="hidden" name="commisionMoney" value="{$v.commisionMoney}">
                                                <input type="hidden" name="needSwitchPNR" value="{$v.needSwitchPNR}">
                                        <span class='flight-list-t-l'>
                                            <input type="submit" class="btn btn-warning btn-sm text-center"
                                                   style="height: 30px;line-height: 10px;" value="预订">
                                        </span>
                                            </form>
                                            <else/>
                                            <div class="detail-bottom clearfix">
                                                <a href="tel:{$mobile}"
                                                   style="background:#EFF0F0;height: 50px;line-height: 50px;width: 100%;font-size:14px;"><i></i>咨询</a>
                                            </div>
                                        </if>
                                    </td>

                                </tr>
                                <if condition="$Think.session.isLogin eq yes">
                                    <tr>
                                        <td width="25%">
                                            &nbsp;
                                        </td>
                                        <td width="45%" class="text-right"><span
                                                style="border-top: 0px solid #ddd; padding: -8px;color:#33b3b8">
                                                {$v['parPrice'] + $vo['fuelTax'] + $vo['airportTax']}-{$v['settlePrice'] + $vo['fuelTax'] + $vo['airportTax']}={$v.earnPrice}</span>
                                        </td>
                                    </tr>
                                    <else/>
                                    <tr>
                                        <td colspan="2" width="70%">
                                            &nbsp;燃油税<span style="color:#F0AD4E">{$vo.fuelTax}</span> 基建费<span
                                                style="color:#F0AD4E">{$vo.airportTax}</span>
                                        </td>
                                        <td width="30%">&nbsp;</td>
                                    </tr>
                                </if>
                            </table>
                        </div>
                    </foreach>
                </div>
            </div>
            <div class="p-line">&nbsp;</div>
        </if>
    </foreach>

    <div class="modal fade popWin bs-example-modal-sm" id="myModalmob" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title text-center" id="myModalLabel">温馨提示</h4>
                </div>
                <div class="modal-body text-center">
                    <p class="tipsBox"><i class="suc">日期选择错误!</i></p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning" data-dismiss="modal" aria-label="Close">确认</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">取消</button>
                </div>
            </div>
        </div>
    </div>
    <footer class="footer">
        <include file="Template/foot"/>
    </footer>
</div>


<script type="text/javascript" src="http://cdn.lydlr.com/public/js/showDate/WdatePicker.js"></script>
</body>
</html>
